import React, { Component } from 'react';
import './leftlist.scss'
class leftlist extends Component {


    render() {  
        return (
            <div className='left'>
                {
                    this.props.list.map((item,index) => {
                        return (
                            <div key={index} className='lis' onClick={() => {
                            this.load()
                            }}>{item.name}</div>
                        )
                    })
                }
                
            </div>
        );
    }
}

export default leftlist;